﻿namespace Cars.Console
{
    using Common;
    using Renderer;
    using System;
    public class EntryPoint
    {
        public static void Main()
        {
            Console.BufferWidth = Console.WindowWidth = Constants.FieldWidth;
            Console.BufferHeight = Console.WindowHeight = Constants.FieldHeight;

            var renderer = new ConsoleRenderer(Console.WindowWidth, Console.WindowHeight);
            var engine = new GameEngine(renderer);


            engine.Run();

        }
    }
}
